﻿/*
 * Created by SharpDevelop.
 * User: kwu
 * Date: 2007-4-23
 * Time: 17:29
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Collections;

namespace msnkiller
{
	/// <summary>
	/// Description of Command.
	/// </summary>
	public class Command
	{
    private string fPattern;
	  
    public string Pattern {
      get { return fPattern; }
      set { fPattern = value; }
    }
	  //TODO: 执行和显示给谁分成2个delegate
    public delegate string CommandDelegate(Player player, ArrayList sendToAccounts,
	                                        string msg);
    
    private CommandDelegate fExecute;
    
    public CommandDelegate Execute {
      get { return fExecute; }
      set { fExecute = value; }
    }
    
		public Command()
		{
		}
		
		public Command(string pattern, CommandDelegate pro)
		{
		  fPattern = pattern;
		  fExecute = pro;
		}
	}
}
